Author: Andrew Johnson
Last saved by: salewis

EPICS Lab Part 1: Create and Run an IOC
	Set up your IOC files. (See the "Create IOC" box on the IOC Development Workflow sheet.)  Suggestions: name=epicstraining, appname=training.  username is your unix username.
	Build the IOC. (See the "Build IOC" box on the IOC Development Workflow sheet.)
After building the IOC, you will have the following directory structure:
		ioctop
   		|---bin
   		|   |---linux-x86
		|
   		|---configure
   	|---db               # do not edit databases here!
   		|---dbd
   		|---edm              # store edm files here (you will create this directory later)
   		|---include
   		|---iocBoot
   		|   |---iocappname   # st.cmd startup script is here
		|
   		|---lib
   		|---linux-x86
   		|---appnameApp
   		    |---Db           # edit databases here
   		    |---src

	Run the IOC. (See the "Boot IOC" box on the IOC Development Workflow sheet.)
	At the epics prompt inside the IOC shell, type dbl to see a list of records on your IOC.  
Notice that all the records begin with your unix username.  This prevents duplicate PV names on the same network.
	Check the value of a PV in your IOC:  
dbpr usernameHost:xxxExample 
Look at the value of the record (VAL field). You can see other fields here too.
	Change the value of a PV: 
dbpf usernameHost:xxxExample 3
	View the PV after your change: 
dbpr usernameHost:xxxExample
Note the value of the record now. 
	Check the value of a different PV: 
dbpr usernameHost:aiExample  
Look at the value of the record.
	Check it again:  dbpr usernameHost:aiExample  
Note the value of the record now.  It's changing... the database is causing this record to change.  More about that later.
	To quit the IOC, type exit.

EPICS_Lab_Part1_Create_IOC		page  of